/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.web.entity;


import com.jeeplus.common.utils.excel.annotation.ExcelField;
import com.jeeplus.core.persistence.DataEntity;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 钱包Entity
 * @author rongjie
 * @version 2017-08-06
 */
public class WxUserWalletDetails extends DataEntity<WxUserWalletDetails> {

	private static final long serialVersionUID = 1L;
	private WxUser user;		// 用户id
	private String content;		// 变动名称
	private BigDecimal price;		// 变动金额
	private String orderNumber;

	public WxUserWalletDetails() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}

	public WxUserWalletDetails(String id){
		super(id);
	}

	@ExcelField(title="用户id", fieldType=WxUser.class, value="user.userName", align=2, sort=1)
	public WxUser getUser() {
		return user;
	}

	public void setUser(WxUser user) {
		this.user = user;
	}

	@ExcelField(title="名称", align=2, sort=2)
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@ExcelField(title="金额", align=2, sort=3)
	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	@Override
	@ExcelField(title="创建时间", align=2, sort=5)
	public Date getCreateDate() {
		return super.getCreateDate();
	}

	@ExcelField(title="订单号", align=2, sort=4)
	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}
}
